import { createRouter ,createWebHistory ,createWebHashHistory} from "vue-router";

import Home from '@/pages/Home.vue'
import Login from '@/pages/Login.vue'
import Dept from "@/pages/Dept.vue";
import Job from "@/pages/Job.vue";

const router=createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path: '/home',
            component:Home
        },
        {
            path: '/login',
            component: Login
        },
        {
            path:'/dept',
            component: Dept
        },
        {
            path:'/Job',
            component: Job
        },
        {
            path:'/',
            redirect:'/login'
        }
        
    ]
})
export default router;